<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/webCommon/webCommon.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>任务添加</title>
<script type="text/javascript" src="plugins/layui/layui.js"></script>
<script type="text/javascript" src="plugins/layui/layui.js"></script>
		<script>
			layui.use(['form', 'layedit', 'laydate'], function() {
				var form = layui.form(),
					layer = layui.layer,
					layedit = layui.layedit,
					laydate = layui.laydate;
				 //监听提交
				form.on('submit(tijiao)', function(data) {
					layer.alert(JSON.stringify(data.field), {
						title: '最终的提交信息'
					})
				});
			});
		</script>

</head>

<body>
	<div style="margin: 15px;">
		 <form class="layui-form" action="<%=basePath%>/sys/ServiceTask_add.action">
			
				<div class="layui-form-item">
				<label class="layui-form-label">分组名称</label>
				<div class="layui-input-inline">
						<select name="studentGroupId" id="studentGroupId">
							<option value="">请选择...</option>
							<s:iterator value="serviceStudentGroupList">
							<option value="${studentGroupId}" id="${studentGroupId}">${studentGroupName}</option>
							</s:iterator>
						</select>
					</div>
				</div>
				
					<div class="layui-form-item">
				<label class="layui-form-label">指派给</label>
				
				<div class="layui-input-inline">
						<select name="userId" id="userId">
							<option value="">请选择...</option>
							<s:iterator value="sysUserList">
							<option value="${userId}" id="${userId}">${userName}</option>
							</s:iterator>
						</select>
					</div>
				</div>
				
				
			<div class="layui-form-item">
				<label class="layui-form-label">任务名称</label>
				<div class="layui-input-inline">
					<input type="text" name="taskName" lay-verify="taskName" autocomplete="off" placeholder="任务名称" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">任务内容</label>
				<div class="layui-input-block">
					<input type="text" class="layui-textarea" name="taskContent" lay-verify="taskContent" autocomplete="off" placeholder="任务内容" >
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">任务开始时间</label>
				<div class="layui-input-inline" id="workStartTime">
					<input type="text" name="taskStateTime" id="taskStateTime"
						lay-verify="taskStateTime" placeholder="yyyy-mm-dd"
						autocomplete="off" class="layui-input"
						onclick="layui.laydate({elem: taskStateTime,istime: true,format: 'YYYY-MM-DD hh:mm:ss'})">
				</div>
				</div>
				
		     <div class="layui-form-item">
				<label class="layui-form-label">任务结束时间</label>
				<div class="layui-input-inline" id="taskFinishTime">
					<input type="text" name="taskFinishTime" id="taskFinishTime"
						lay-verify="taskFinishTime" placeholder="yyyy-mm-dd"
						autocomplete="off" class="layui-input"
						onclick="layui.laydate({elem: taskFinishTime,istime: true,format: 'YYYY-MM-DD hh:mm:ss'})">
				</div>
			</div>
			
			<div class="layui-form-item">
					<div class="layui-input-block">
						<button id="tijiao" class="layui-btn" lay-filter="tijiao" lay-submit="">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
		</form>
	</div>
</body>
</html>
